# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=vermin
pkgver=1.5.2
pkgrel=0
pkgdesc="Detect the minimum Python versions needed to run code"
url="https://github.com/netromdk/vermin"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/netromdk/vermin/archive/refs/tags/v$pkgver.tar.gz
	0001-Remove-test_process_value_error.patch"

build() {
	python3 setup.py build
}

check() {
	python3 runtests.py
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
dcc53cd159f826c287c789fb71c79c3a999085db182cf33dbf44ce5cfa172ad7b9690d308332fb6c528f8cc327dfc18c2521ca0097c6e624f21edc5e85eb2b1a  vermin-1.5.2.tar.gz
db9108741acd3fcf49f9c9977ab88c5f3d9e5d9a8545dbb1ccd1f51f1793b4d9054aff58a3db763405925bbefd43f0ca2bee6ff3313f10596fcdaddc876640c6  0001-Remove-test_process_value_error.patch
"
